package com.techstar.ats.type;

import lombok.RequiredArgsConstructor;

@RequiredArgsConstructor
public enum TrainModeType implements Enumerated {
	TYPE_MANUAL(0x00000000, "人工车"),
	TYPE_HEAD(0x00000001, "头码车"),
	TYPE_SPECIAL(0x00000002, "特殊人工车"),
	TYPE_SCHEDULE(0x00000003, "计划车"),
	TYPE_ROUTE(0x00000004, "运行线车"),
	TYPE_SHUTTLE(0x00000005, "单线往返车"),
	TYPE_LINEUP(0x00000006, "预定义车");

	private final int value;
	private final String literal;

	@Override
	public int value() {
		return value;
	}

	@Override
	public String literal() {
		return this.literal;
	}

	public TrainModeType valueOf(int value) {
		return Enumerated.valueOf(TrainModeType.class, value);
	}
}
